import { Service } from 'egg';

/**
 * Test Service
 */
export default class Login extends Service {
  public async login(username: string,password:string) {
    const {ctx} = this;
    const user = await ctx.db.query('select * from user where username = ? & password = ?', [username,password]);
    return user;
  }
}
